package Mangos::DB::Mangos::GameWeather;

use strict;

use base qw(Mangos::DB::Mangos);

__PACKAGE__->meta->setup
(
    table   => 'game_weather',

    columns => 
    [
        zone                => { type => 'integer', not_null => 1 },
        spring_rain_chance  => { type => 'integer', default => 25, not_null => 1 },
        spring_snow_chance  => { type => 'integer', default => 25, not_null => 1 },
        spring_storm_chance => { type => 'integer', default => 25, not_null => 1 },
        summer_rain_chance  => { type => 'integer', default => 25, not_null => 1 },
        summer_snow_chance  => { type => 'integer', default => 25, not_null => 1 },
        summer_storm_chance => { type => 'integer', default => 25, not_null => 1 },
        fall_rain_chance    => { type => 'integer', default => 25, not_null => 1 },
        fall_snow_chance    => { type => 'integer', default => 25, not_null => 1 },
        fall_storm_chance   => { type => 'integer', default => 25, not_null => 1 },
        winter_rain_chance  => { type => 'integer', default => 25, not_null => 1 },
        winter_snow_chance  => { type => 'integer', default => 25, not_null => 1 },
        winter_storm_chance => { type => 'integer', default => 25, not_null => 1 },
    ],

    primary_key_columns => [ 'zone' ],
);

1;

package Mangos::DB::Mangos::GameWeather::Manager;

use strict;
use warnings;

use base 'Rose::DB::Object::Manager';

sub object_class { 'Mangos::DB::Mangos::GameWeather' }

__PACKAGE__->make_manager_methods('game_weather');

1;
